Skip to content

Fix the AGENTS.md Template Offer link in the built user guide - #52

Merged
Malcolmnixon merged 1 commit into
mainfrom
fix-agentsmd-anchor
Nov 17, 2026
Merged

Malcolmnixon merged 1 commit into
mainfrom
fix-agentsmd-anchor

Conversation

@Malcolmnixon

Copy link
Copy Markdown
Member

The user guide links to #agentsmd-template-offer twice. GitHub generates that id for the heading AGENTS.md Template Offer, but Pandoc keeps the dot (agents.md-template-offer), so WeasyPrint reported No anchor #agentsmd-template-offer and the links were dead in the HTML/PDF. An explicit <a id="agentsmd-template-offer"></a> before the heading makes the links work in both. Verified: Pandoc + WeasyPrint build with no anchor warning; LintMark clean.

Pandoc keeps the dot in the heading id (agents.md-template-offer) while GitHub drops it (agentsmd-template-offer), so the two internal links were broken in the HTML/PDF. An explicit anchor with the GitHub-style id makes the links resolve in both.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings November 17, 2026 14:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change adds the explicit cross-format anchor while preserving existing links and documentation structure, with no active review issues recorded.

No open issues 🎉

What changed in this PR

This PR fixes broken user-guide links to the AGENTS.md Template Offer section in generated HTML and PDF output by adding an explicit anchor compatible with both GitHub and Pandoc-generated identifiers.

Changes:

  • Added the agentsmd-template-offer anchor before the relevant heading.
  • Preserved the existing links and documentation structure.
File Description
docs/​user_guide/​introduction.md Adds the explicit anchor used by internal links to the AGENTS.md Template Offer section.

Review effort: Lite

@Malcolmnixon
Malcolmnixon merged commit 48b1bf3 into main Nov 17, 2026
8 checks passed
@Malcolmnixon
Malcolmnixon deleted the fix-agentsmd-anchor branch November 17, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants